/*
 * @Author: 李天惊 uf_lee@163.com
 * @Date: 2022-08-30 22:22:21
 * @LastEditors: 李小晴 2689279066@qq.com
 * @LastEditTime: 2023-03-29 15:42:32
 * @FilePath: \ahbs\uc_sys\src\api\uc\roleMenu\index.ts
 * Copyright (c) 2022 by 李天惊 uf_lee@163.com, All Rights Reserved.
 */
import { useAxios } from '@/hooks/web/useAxios'
const request = useAxios()

import { useCache } from '@/hooks/web/useCache'
const { wsCache } = useCache()

// 终端类型与角色查看
export const ucTerminalRoleSeeApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'ucTerminalRoleSee',
      data: data
    }
  })
}

// 终端类型与角色设置
export const ucTerminalRoleSetApi = (data: any) => {
  return request.post({
    url: 'index.php/api/common',
    headers: { token: wsCache.get('token') },
    data: {
      code: 'ucTerminalRoleSet',
      data: data
    }
  })
}
